#ifndef CUBIC_H_
#define CUBIC_H_

//------------------
typedef struct{
	double posit[2];
	float vel[2];
}STRUCT_CUBIC_PARAM;

//-------------------
typedef struct{
	double a3, a2, a1, a0;
}STRUCT_CUBIC_FACTOR;

//API
int cbComputeFactor(STRUCT_CUBIC_PARAM *para, STRUCT_CUBIC_FACTOR *factor, float t);
int cbComputePVA(STRUCT_CUBIC_FACTOR *factor, float t, double *posit, float *vel, float *acc);


#endif

